package com.xpc.rpc.protocol.response;

import com.xpc.rpc.protocol.header.RpcHeader;

import java.io.Serializable;

/**
 * RPC响应体
 */
public class RpcResponse<T> implements Serializable {

    /**
     * 响应数据
     */
    private T data;

    /**
     * 错误信息
     */
    private String errMsg;

    /**
     * 响应状态码
     */
    private Integer code;


    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
